﻿using MvcApplication2.Models.DTO;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication2.Models
{
    public class RegisterModel:MasterModel
    {
        public NguoiDung NguoiDung { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string Password
        {
            get
            {
                return NguoiDung.Password;
            }
            set
            {
                NguoiDung.Password = value;
            }
        }

        [DataType(DataType.Password)]
        [Display(Name="Xác nhận password")]
        [Compare("Password")]
        public string ConfirmPassword { get; set; }
    }
}